package com.example.service;

import com.example.dao.StudentDao;
import com.example.entity.Classes;
import com.example.entity.Student;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;



@Service

public class StudentService {
    @Resource
    StudentDao studentDao;
    public List<Student> select() {
        return studentDao.select();
    }

    public int addStu(Student student) {
        return studentDao.addStu(student);
    }

    public List<Classes> selectC() {
        return studentDao.selectC();
    }

    public int del(String stuno) {
        return studentDao.del(stuno);
    }

    public List<Student> findByStuno(String stuno) {
        return studentDao.findByStuno(stuno);
    }

    public int updStu1(Student student) {
        return studentDao.updStu(student);
    }
}
